#ifndef LSSTYLE_H
#define LSSTYLE_H

#include <QPlastiqueStyle>
#include <QPainter>
#include <QStyleOption>
#include <QDebug>

class LSStyle : public QPlastiqueStyle
{
public:
    LSStyle();
//    void drawPrimitive ( PrimitiveElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget = 0 ) const
//    {
//        if (element == QStyle::PE_IndicatorDockWidgetResizeHandle)
//        {
//            qDebug() << "ResizeHandle: " << option;
////            painter->setBrush(QBrush(QColor(0, 0, 0, 255), Qt::SolidPattern));
////            painter->drawRect(option->rect);
//            QCommonStyle::drawPrimitive(element, option, painter, widget);
//        }
//        else
//        {
//            QPlastiqueStyle::drawPrimitive(element, option, painter, widget);
//        }
//    }
    int pixelMetric(PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0) const
    {
        if (metric == QStyle::PM_DockWidgetSeparatorExtent)
            return 2;
        return QPlastiqueStyle::pixelMetric(metric, option, widget);
    }
};

#endif // LSSTYLE_H
